<!DOCTYPE html>
<html th:replace="layout/layout"
      xmlns:th="http://www.thymeleaf.org">
<style th:fragment="styles">
</style>
<div th:fragment="content">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-lg-10">
            <h2>检疫申报</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="/index?menuId=1">首页</a>
                </li>
<!--                <li>-->
<!--                    <a>检疫检验</a>-->
<!--                </li>-->
                <li class="active">
                    <strong>检疫申报</strong>
                </li>
            </ol>
        </div>
        <div class="col-lg-2">

        </div>
    </div>
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_TimeIntervale" placeholder="报检日期" name="search_TimeIntervale" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <input type="text" id="search_Applicant" placeholder="申报单位"
                                           name="search_Applicant" autocomplete="off" class="form-control">
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="form-group">
                                    <select id='search_ReportType' name='search_ReportType' class="form-control">
                                        <option value="">报检方式</option>
                                        <option value="动物A">动物A</option>
                                        <option value="动物B">动物B</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary  btn-rounded  btn-sm" id="search"
                                        onclick="doSearch()"><i
                                        class="fa fa-search"></i>&nbsp;搜索
                                </button>
                                <button type="submit" class="btn btn-warning  btn-rounded  btn-sm" id="refresh"
                                        onclick="doRest()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置
                                </button>
                            </div>
                        </div>

                        <div class="jqGrid_wrapper">
                            <div class="btn-group-sm" id="toolbar" role="group">
                                <a class="btn btn-success" name="AddNew" id="AddNew" data-toggle="modal"
                                   data-target="#myModalAdd" onclick="addRecord();">
                                    <i class="fa fa-plus"></i> 申报
                                </a>
                            </div>

                            <table class="table table-striped table-bordered table-hover " id="tableList">
                            </table>


                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--模态框-->
    <div class="modal inmodal" id="myModalAdd" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog  modal-lg">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">检疫申报信息</h4>
                </div>
                <div class="modal-body">
                    <!--@*模态框body*@-->

                    <div class="tabs-container">

                        <form class="form-horizontal" id="myform">
                            <div class="panel-body form-horizontal">
                                <div class="row">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>报检方式</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <select id='text_ReportType' onchange="changme(this);" name='text_ReportType' class="form-control">
                                                <option value="动物A">动物A</option>
                                                <option value="动物B">动物B</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>单位联系电话</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_ApplicantPhone" name="text_ApplicantPhone" placeholder="单位联系电话" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>购买人姓名</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_PurchaserName" name="text_PurchaserName" placeholder="购买人姓名" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>购买人电话</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_PurchaserPhone" name="text_PurchaserPhone" placeholder="购买人电话" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>动物种类</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <select id='text_AnimalType' name='text_AnimalType' class="form-control">
                                                <option value="猪">猪</option>
                                                <option value="牛">牛</option>
                                                <option value="羊">羊</option>
                                                <option value="鸡">鸡</option>
                                                <option value="鸭">鸭</option>
                                            </select>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>用途</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <select id='text_Purpose' name='text_Purpose' class="form-control">
                                                <option value="屠宰">屠宰</option>
                                                <option value="喂养">喂养</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>数量</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="number" id="text_Number" name="text_Number" placeholder="数量" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>单位</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <select id='text_Unit' name='text_Unit' class="form-control">
                                                <option value="头">头</option>
                                                <option value="只">只</option>
                                                <option value="羽">羽</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>当前定位</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_CurrentPosition" name="text_CurrentPosition" placeholder="当前定位" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>启运地址</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_ShipAddress" name="text_ShipAddress" placeholder="启运地址" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                </div>
                                <div id="A" style="display:block;" class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>到达地址</label>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_Province' name='text_Province' class="form-control">
                                                <option value="福建省">福建省</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_City' name='text_City' class="form-control" onclick="getAllDistrict1('')">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_District' name='text_District' class="form-control" >
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <input type="text" id="text_ArrivalAddress" name="text_ArrivalAddress"  autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_Field' name='text_Field' class="form-control">
                                                <option value="养殖场">养殖场</option>
                                                <option value="屠宰场">屠宰场</option>
                                                <option value="交易市场">交易市场</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div id="B" style="display:none;" class="row">
                                    <label class="col-lg-2 control-label"><font color="red">*</font>到达地址</label>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_City2' name='text_City2' class="form-control" onclick="getAllDistrict2('')">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_District2' name='text_District2' class="form-control" onclick="getTownship('')">
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_Township' name='text_Township' class="form-control" >
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <input type="text" id="text_ArrivalAddress2" name="text_ArrivalAddress2"  autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <div class="col-lg-2">
                                        <div class="form-group">
                                            <select id='text_Field2' name='text_Field2' class="form-control">
                                                <option value="养殖场">养殖场</option>
                                                <option value="屠宰场">屠宰场</option>
                                                <option value="交易市场">交易市场</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>牲畜耳标号</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_LivestockNo" name="text_LivestockNo" placeholder="牲畜耳标号" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label">牲畜状态照片</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <a href="javascript:;" class="a-upload">
                                                <img onclick="$('#text_LivestockPhoto').click()" id="showImage" src="" style="display: none" class="img-responsive">
                                                <input type="file" id="text_LivestockPhoto" name="text_LivestockPhoto" onchange="ImportShipmentStatusList1();" />点击这里上传图片(格式：.png,.gif,.jpg,尺寸：420*250)
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <label class="col-lg-3 control-label">车辆运载照片</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <a href="javascript:;" class="a-upload">
                                                <img onclick="$('#text_CarPhoto').click()" id="showImage2" src="" style="display: none" class="img-responsive">
                                                <input type="file" id="text_CarPhoto" name="text_CarPhoto" onchange="ImportShipmentStatusList2();" />点击这里上传图片(格式：.png,.gif,.jpg,尺寸：420*250)
                                            </a>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>销售日期</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_SaleDate" name="text_SaleDate" placeholder="销售日期" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="C" style="display:block;">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>承运人</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_Carrier" name="text_Carrier" placeholder="承运人" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>承运人电话</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_CarrierPhone" name="text_CarrierPhone" placeholder="承运人电话" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="D" style="display:block;">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>车牌号</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_CarNumber" name="text_CarNumber" placeholder="车牌号" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                    <label class="col-lg-3 control-label"><font color="red">*</font>承运工具消毒情况</label>
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <input type="text" id="text_Disinfection" name="text_Disinfection" placeholder="承运工具消毒情况" autocomplete="off" class="form-control"/>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="E" style="display:block;">
                                    <label class="col-lg-3 control-label"><font color="red">*</font>运载方式</label>
                                    <div class="col-lg-9">
                                        <div class="form-group">
                                            <label class="radio-inline">
                                                <input type="radio"  value="公路" name="category"> 公路
                                            </label>
                                            <label class="radio-inline">
                                                <input type="radio"  value="铁路" name="category" > 铁路
                                            </label>
                                            <label class="radio-inline">
                                                <input type="radio"  value="水路" name="category" > 水路
                                            </label>
                                            <label class="radio-inline">
                                                <input type="radio"  value="航空" name="category" > 航空
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <!--模态框body结束-->
                </div>
                <div class="modal-footer">
                    <button type="button" id="save" name="save" class="btn btn-success" onclick="saveRecord();"><i
                            class="fa fa-save"></i>&nbsp;提交
                    </button>
                    <button type="button" id="close" name="close" class="btn btn-danger" data-dismiss="modal"><i
                            class="fa fa-close"></i>&nbsp;关 闭
                    </button>
                </div>
            </div>
        </div>
    </div>

</div>
<div th:fragment="scriptRef">
    <!--表单验证-->
    <script th:src="@{/js/lib/validate/jquery.validate.min.js}"></script>
    <script th:src="@{/js/lib/inspinia/js/plugins/laydate/laydate.js}"></script>
    <script th:src="@{/js/quarantineDeclaration/quarantineDeclaration.js}"></script>
    <!--图片上传-->
    <script th:src="@{/js/Scripts/ajaxfileupload.js}"></script>
</div>
<script th:fragment="scripts" type="text/javascript">
    QuarantineDeclaration.init();
</script>
</html>